<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use \DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use \App\Http\Requests\UserPostRequest;


class NewsController extends Controller
{   
    //隐式控制器中间件(在该隐式控制器的方法里加上如下代码,就可以限定该隐式控制器的所有方法)
    protected $middleware = ['App\Http\Middleware\LogMiddleware'=>[]];
   
    //跳转到资讯添加页面
    public function getAdd()
    {
        return view('admin.news.add');
    }

    //跳转到资讯列表页面
    public function getIndex()
    {
        return view('admin.news.index');
    } 

}
